import os


def antRender( theRenderFile , renderer = 'mr' , strt=1 , end=240 ):
    os.system( r'render  -r %(renderer)s -of jpg -rd X:\Works\3d\ant\antProject\images -s %(strt)s -e %(end)s %(file)s' % {'file':theRenderFile ,
                                                             'renderer' : renderer,
                                                             'strt':strt , 'end':end } )

if __name__ == '__main__':
    antRender( r"X:\Works\3d\ant\antProject\scenes\antCrowd_5000_01.ma" ,strt=16 )
else:
    pass
